cmake_minimum_required(VERSION 3.10)

project(dns)

add_executable(dns dns.cpp)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(dns ws2_32)
elseif(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
    message(FATAL_ERROR "Unsupported platform")
endif()